<% content_for :mid do %>
<div id="midnav_left"></div>
<div id="midnav_back">
<div id="notice">
<%= list_notice(flash[:notice]) %>
</div>
</br>
</br>
<div>
  <strong><%= link_to "讨论区",:controller=>"forum",:action=>"index" %></strong><span class="arrow">&rarr;</span>
  <strong><%= link_to h(@forum.name),:controller=>"forum",:action=>"read_forum",:id=>@forum.id%></strong><span class="arrow">&rarr;</span>
  <strong><%= link_to h(@topic.title),:controller=>"forum",:action=>"read_topic",:id=>@topic.id%></strong>
</div>
</div>
<div id="midnav_right"></div>
<% end %>
<table width="680" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td align="right" class="medgray">
		<div id="cancel_reply" height="30"><%=image_tag "/images/down.gif" %>&nbsp;&nbsp;<a
			onclick="Element.hide('cancel_reply');Effect.BlindDown('new_reply'); return false;"
			href="#">对该话题发表回复</a></div>
		<div id="new_reply" style="DISPLAY:none">
		<%=image_tag "/images/up.gif" %>&nbsp;&nbsp;<a
			onclick="Element.show('cancel_reply'); Element.hide('new_reply');return false;"
			href="#">取消我发表的回复</a>
		<p><%= render :partial=>"create_reply",:locals => {:category => @forum.id}%></p>
		</div>
		</td>
	</tr>
</table>
</br>
<%= render :partial => "topic" %>
<div id="reply_list"><%= render_collection_of_partials "reply",@topic.comments%></div>
